package com.yangyang.androidconnect.phoneinfo.service;

import com.yangyang.androidconnect.MyApplication;
import com.yangyang.androidconnect.phoneinfo.DataCollectionService;
import com.yangyang.androidconnect.phoneinfo.DatabaseHelper;
import com.yangyang.androidconnect.phoneinfo.model.SMSRecord;

import java.util.List;

public class SMSService {

    private DataCollectionService dataService;
    private DatabaseHelper databaseHelper;

    public SMSService() {
        initComponents();
    }

    private void initComponents() {
        dataService = MyApplication.getInstance().getDataCollectionService();
        databaseHelper = MyApplication.getInstance().getDatabaseHelper();
    }

    public List<SMSRecord> getAllSMSRecords() {
        List<SMSRecord> smsRecords = dataService.getSMSRecords();
        return smsRecords;
    }
}
